#!/bin/sh
while true
do

ps -ef | grep "Alliance_Sentry_V2_1" | grep -v "grep"

if [ "$?" -eq 1 ]
then 
/home/nvidia/Desktop/run.sh
echo "process has been restarted!"
else
echo "process already started!"
fi

sleep 1

done

